home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
iconv.z
/
iconv
Wrap
Text File
|
1998-10-20
|
4KB
|
133 lines
iiiiccccoooonnnnvvvv((((1111)))) iiiiccccoooonnnnvvvv((((1111))))
NNNNAAAAMMMMEEEE
iconv - code set conversion utility
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
iiiiccccoooonnnnvvvv [-ei] -f fromcode -t tocode [file]
iiiiccccoooonnnnvvvv [-ei] -l
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_iiii_cccc_oooo_nnnn_vvvv converts the characters or sequences of characters in file from one
code set to another and writes the results to standard output. Should no
conversion exist for a particular character then it is converted to the
underscore ' ' in the target code set.
With the arguments _f_r_o_m_c_o_d_e and _t_o_c_o_d_e identifying the input and output
code sets, respectively _iiii_cccc_oooo_nnnn_vvvv will data perform conversion. If no file
argument is specified on the command line, _iiii_cccc_oooo_nnnn_vvvv reads the standard
input. -_e will echo conversion errors to standard error while -_i will not
report errors. -_i is the default.
Optional _iiii_cccc_oooo_nnnn_vvvv converters are available by installing _I_R_I_X national
language support options. _iiii_cccc_oooo_nnnn_vvvv -_l will list converters that are
configured for that system. _iiii_cccc_oooo_nnnn_vvvv -_e_l will only list those converters
that are able to be opened. These may be different due to resource or
incomplete instalation problems.
Unless otherwise specified, conversions between dis-similar code-sets are
performed by using _U_N_I_C_O_D_E as the intermediate code set.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
The following converts the contents of file "file.txt" from code set
ISO-8859-1 to UTF-8 and stores the results in file file.iv.
_iiii_cccc_oooo_nnnn_vvvv -f ISO8859-1 -t UTF-8 < file.txt > file.iv
Or if you have the Japanese environment installed you may perform the
following which converts file "file.sjis" from the PC-DOS Japanese code
set to the eucJP or Extended Unix Code for Japanese and stores the
results in "file.eucJP".
_iiii_cccc_oooo_nnnn_vvvv -f sjis -t eucJP < file.sjis > file.eucJP
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_iiii_cccc_oooo_nnnn_vvvv(3c)
FFFFIIIILLLLEEEESSSS
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_iiii_cccc_oooo_nnnn_vvvv_////_ssss_pppp_eeee_cccc
lists the conversions supported
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_iiii_cccc_oooo_nnnn_vvvv_////_tttt_aaaa_bbbb_llll_eeee_ssss
conversion tables
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_mmmm_eeee_ssss_gggg
language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5).]
PPPPaaaaggggeeee 1111
iiiiccccoooonnnnvvvv((((1111)))) iiiiccccoooonnnnvvvv((((1111))))
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
_iiii_cccc_oooo_nnnn_vvvv returns 0 upon successful completion, 1 otherwise.
PPPPaaaaggggeeee 2222